package com.yuyou.fn.tradingservice.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.github.wens.mybatisplus.annotations.TableField;
import com.github.wens.mybatisplus.annotations.TableId;
import com.github.wens.mybatisplus.annotations.TableName;
import com.github.wens.mybatisplus.examples.Example;
import com.yuyou.fn.common.condition.annotation.FullLike;

/**
 *服务车订单
 */
@TableName(value = "service_order")
public class ServiceOrder implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	public static Example<ServiceOrder> createExample(){
		return new Example<ServiceOrder>(ServiceOrder.class);
	}

	/**订单ID*/
	@TableId(value = "order_id")
	private Long orderId;

	/** 訂單編號 */
	private String sn;

	/**创建日期*/
	@TableField(value = "create_time")
	private Date createTime;

	/**更新日期*/
	@TableField(value = "update_time")
	private Date updateTime;

	/** 支付状态0：未支付，1已支付，2：取消的订单，3：退款中的订单*/
	private Integer status;

	@TableField(value = "address_id")
	private Long addressId;

	/**用户id*/
	@TableField(value = "user_id")
	private Long userId;

	/**用户名*/
	@TableField(value = "user_name")
	private String userName;

	/**支付方式*/
	@TableField(value = "pay_way")
	private int payWay;

	/**订单总价格*/
	private BigDecimal price;

	/** 订单类型  */
	@TableField(value = "type")
	private Integer type;

	/**收货地址**/
	@TableField(value = "address")
	private String address;

	/**电话号码*/
	@TableField(value = "phone_no")
	private String phoneNo;

	/**联系人**/
	@TableField(value = "consignee")
	private String consignee;

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Long getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public String getSn() {
		return this.sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getAddressId() {
		return addressId;
	}

	public void setAddressId(Long addressId) {
		this.addressId = addressId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public int getPayWay() {
		return payWay;
	}

	public void setPayWay(int payWay) {
		this.payWay = payWay;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhoneNo() {
		return phoneNo;
	}

	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}

	public String getConsignee() {
		return consignee;
	}

	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}
}
